package org.fujay.langchain4jserver.infrastructure.persistence.mybatis.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.fujay.mybatis.core.base.BaseEntity;

/**
 * 会话持久化实体 (对应 conversation 表 - 需要新建)
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "conversation")
public class ConversationPo extends BaseEntity {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "user_id")
    private Long userId;

    @TableField(value = "app_id")
    private Long appId;

    @TableField(value = "title")
    private String title;

    @TableField(value = "del_flag")
    @TableLogic
    private Integer delFlag;
}
